std::remove_reference

From Cppreference

Jump to: navigation, search
Defined in header <type_traits>

template< class T >
struct remove_reference;
(since C++11)

If the type T is a reference type, provides the member typedef type which is the type, referred to by T. Otherwise type is T.

Contents

[edit] Member types

Name Definition
type the type referred by T or T if it is not a reference

[edit] Equivalent definition

[edit] Example

[edit] See also

checks if a type is either lvalue reference or rvalue reference
(class template)
adds lvalue or rvalue reference to the given types
(class template)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages